Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatible overrides of overloaded generics with self types #14882

Merged
merged 2 commits into from
Mar 11, 2023

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #14866

Basically does the potential todo I'd mentioned in #14017

Fixes python#14866

Basically does the potential todo I'd mentioned in python#14017
@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures/mixins.pyi:83: error: Unused "type: ignore" comment
+ src/werkzeug/datastructures/headers.pyi:91: error: Unused "type: ignore" comment

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ bson/son.py: note: At top level:
+ bson/son.py:118: error: Unused "type: ignore" comment

urllib3 (https://github.com/urllib3/urllib3)
+ src/urllib3/_collections.py:269: error: Unused "type: ignore" comment

@JelleZijlstra
Copy link
Member

Nice to see this fixes more issues in real code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect incompatible override report with self type + overload + TypeVar with constraints
2 participants